package com.tz.crm.entity.dto;

import org.hibernate.validator.constraints.NotBlank;

/**
 * Created by wangchunyang on 2017/3/7.
 */
public class Announcement {

    String id;// ID
    @NotBlank(message="{title.can.not.be.blank}")
    String title;// 标题
    @NotBlank(message="{context.can.not.be.blank}")
    String context;// 内容

    public Announcement() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    @Override
    public String toString() {
        return "Announcement{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", context='" + context + '\'' +
                '}';
    }
}
